package com.doone.telmarket.service;


import java.util.List;

import com.doone.telmarket.domain.OrderSort;
import com.doone.telmarket.domain.ServiceProduct;
import com.doone.telmarket.domain.ServiceProductView;
import com.doone.telmarket.vo.HotBusiVo;
import com.doone.telmarket.vo.ServiceVo;

/**
 * @package com.doone.telmarket.service;
 * @author 甘雨波
 * @description  产品类别操作接口
 * @date 2009-10-13
 */
public interface ServiceProductOperation {

	public ServiceProduct saveServiceProduct(ServiceProduct serviceProduct);
	
	public void deleteByPrimaryKey(String serviceProduct);
	
	public void deleteByServiceCode(int serviceCode);
	
	public List<OrderSort> selectOrderSort();
	
	public int selectBuyCount(String id);
	
	public int selectScCount(int id);
	
	public List<ServiceProductView> getNextPage(int page,String serviceTypeName);
	
	public List<ServiceProductView> getPriviPage(int page,String serviceTypeName);
	 
	public List<ServiceProductView> getEndPage(String serviceTypeName);
	
	public int getMaxPage(String serviceTypeName);
	
	public List<ServiceProduct> getProductByServiceType(String typeName);
	
	public void saveHotBusi(ServiceProductView productView);
	
	public List<ServiceProductView> selectIndexHotBusi(String serviceTypeName);
	
	public  List<ServiceProductView> getProductView(ServiceVo sv);
	
	public void deleteHotByServiceTypeName(String serviceTypeName);
	
	public List<HotBusiVo> selectHotBusi(String type);
	
	public void insertHotBusi(HotBusiVo view);
	
	public void deleteHotBusi(String type);
	
}
